<?php

define('DS', DIRECTORY_SEPARATOR);
define('FRAME', dirname(__FILE__) . DS . '..' . DS . '..' . DS . 'Framework');

define('SERVER_NAME', isset($_SERVER['SERVER_NAME'])? $_SERVER['SERVER_NAME']: $_SERVER['HTTP_HOST']);
$application = dirname(__FILE__).DS.'..';
define('SERVER_PATH', $application);
$applicationIni = dirname(__FILE__) . DS . '..' . DS . '..' . DS .'www.yueshihui.com' . DS . 'application.ini';

include FRAME . '/Application.php';

$App = new Application($applicationIni);
$App->run($application);